<?php
        $url = Yii::$app->request->getUrl();
        $menu = "";
            $menu = explode("/",$url);
            $menu = $menu[1];
        ?>
        <header class="header">
            <div class="headerInner">
                <a href="/" class="left header-logo">
                    <img src="/statics/images/all.png"  class="img-responsive" alt="logo image">
                </a>
                <div class="header-right">
                    <ul class="header_ul clearfix right">
                        <li <?php if($menu==''):?>class="current sub"<?php endif;?>><a href="/">主页</a>
                        </li>
                        <li <?php if($menu=='category.html'||$menu=='category'):?>class="current sub"<?php endif;?>><a href="/category.html">文章分类</a></li>
                        <li <?php if($menu=='travel.html'||$menu=='album'):?>class="current sub"<?php endif;?>><a href="/travel.html">在路上</a></li>
                        <li <?php if($menu=='mood.html'):?>class="current sub"<?php endif;?>><a href="/mood.html">碎碎念</a></li>
                        <li <?php if($menu=='comment.html'):?>class="current sub"<?php endif;?>><a href="/comment.html">留言</a></li>
                        <!-- <li  <?php /*if($menu=='comment.html'||$menu=='comment'):*/?>class="current sub"<?php /*endif;*/?>><a href="/comment.html">留言板</a></li>-->
                        <li  <?php if($menu=='contact.html'||$menu=='contact'):?>class="current sub"<?php endif;?>><a href="/contact.html" <?php if($menu=='contact.html'||$menu=='contact'):?>class="current sub"<?php endif;?>>关于我</a></li>
                    </ul>
                </div>
            </div>
        </header>
<?=$this->registerJs("
requirejs(['/statics/js/public/control.js?'+(new Date()).getTime()], function () {
        require(['header']);;
    });
",\yii\web\View::POS_END)?>